import Vue from 'vue'
import VueRouter from 'vue-router'
import RecommendHome from '../views/RecommendHome.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: RecommendHome
  },
  {
    path: '/hot',
    name: 'hot',
    component: () => import(/* webpackChunkName: "about" */ '../views/HotHome.vue')
  },
  {
    path: '/search',
    name: 'search',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/SearchHome.vue')
  },
  {
    path: '/billboard',
    name: 'billboard',
    component: () => import(/* webpackChunkName: "about" */ '../views/BillBoard.vue')
  },{
    path: '/geci',
    name: 'geci',
    component: () => import(/* webpackChunkName: "about" */ '../views/GeciView.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
